package top.saycode.schedule.base.common;

import lombok.Data;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

/**
 * @author <a href="https://gitee.com/LongLiS">cloudconceal</a> 2025/3/25 13:18
 */
@Data
public class TimeUtils {

   public static final DateTimeFormatter DATE_TIME_FORMATTER = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");

   public static LocalDateTime parseDateTime(String dateTime) {
       return LocalDateTime.parse(dateTime, DATE_TIME_FORMATTER);
   }
}
